package com.workcell.workdata.xthings.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDateTime;

/**
 * <p>
 * 打卡机员工表
 * </p>
 *
 * @author zhangguangrui
 * @since 2023-03-15
 */

@Data
@TableName("t_time_clock_user_info")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "打卡机员工表")
public class UserInfo extends Model<UserInfo> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("员工工号")
    @TableField("employee_no")
    private String employeeNo;

    @ApiModelProperty("员工姓名")
    @TableField("employee_name")
    private String employeeName;

    @ApiModelProperty("人员类型：normal：默认普通人（主人）,visitor来宾（访客）,blackList黑名单人")
    @TableField("user_type")
    private String userType;

    @ApiModelProperty("创建人")
    @TableField("create_by")
    private String createBy;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新人")
    @TableField("update_by")
    private String updateBy;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
